/*
 * To change this template, choose Tools | Templates
 * and open the template in the editor.
 */
package merlion.mrp.pmm.session;

import java.util.Collection;
import java.util.List;
import javax.ejb.Local;
import merlion.mrp.pmm.entity.FinishedGood;
import merlion.mrp.ppm.entity.Product;
import merlion.scm.icm.entity.ProductInventoryRecord;

/**
 *
 * @author Zhu Xin, Zhang Ying
 */
@Local
public interface ProductManagementSessionLocal {
    public Product updateProductBasePrice(Product product);
    public Collection<FinishedGood> getAllFinishedGoods();
    public FinishedGood createFinishedGoodsRecord(FinishedGood fg, Product p);
    public Boolean exist(String batchNo);
    FinishedGood updateFinishedGoodsRecord(FinishedGood fg);
    FinishedGood getFinishedGoodsById(Long id);
    public List<Double> calculateMaterialUsed(FinishedGood fg);
    public boolean checkPercDifferenceFromPlannedDaily(FinishedGood fg, String productType);

    public Product getProduct(String ProductType);

    public Product createProduct(Product p);

    public ProductInventoryRecord createProductInventoryRecord(ProductInventoryRecord pir);

}
